//
//  ZZEmoticonModel.swift
//  web
//
//  Created by 张卓 on 2017/2/11.
//  Copyright © 2017年 ZZ. All rights reserved.
//

import UIKit

class ZZEmoticonModel: NSObject,NSCoding {

    //Emoji需要的表情
    //十六进制字符串
    var code: String?
    //类型(1 是emoji  0是图片表情)
    var type : String?{
        didSet{
            isEmoji = (type == "1")
        }
    }
    //图片描述
    var chs: String?
    //图片名
    var png: String?
    
    //是否是emoji表情
    var isEmoji: Bool = false
    
    // 全路径
    var path: String?
    
    override init() {
        super.init()
    }
    
    //归档
    func encode(with aCoder: NSCoder) {
        self.yy_modelEncode(with: aCoder)
    }
    
    //解档
    required init?(coder aDecoder: NSCoder) {
        super.init()
        self.yy_modelInit(with: aDecoder)
    }
}
